package cn.sys.controller;

import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

public class Test03 {
    public static void main(String[] args) {
        InputStream resourceAsStream = Test03.class.getClassLoader().getResourceAsStream("user.xls");
        ExcelReader excelReader = ExcelUtil.getReader(resourceAsStream);
        List<Map<String, Object>> maps = excelReader.readAll();
        for (Map<String, Object> map : maps){
            System.out.println(map);
        }
    }
}
